﻿<UserControl x:Class="SharePointTagCloud.Silverlight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" 
    >
<!-- d:DesignHeight="300" d:DesignWidth="400" -->
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel Orientation="Vertical">
            <Canvas Name="RootCanvas" Width="400" Height="300"/>
            <!--
            <ListBox Name="lbLists" Width="300" Height="400" ScrollViewer.VerticalScrollBarVisibility="Auto" Margin="20,20,20,20" />
            <TextBox Name="txtDetails" Width="200" Height="400" TextWrapping="Wrap" />
            -->
            <StackPanel Orientation="Horizontal" Visibility="Collapsed">
                <TextBox Name="MouseX" />
                <TextBox Name="MouseY" />
                <TextBox Name="RotationSpeed" />
            </StackPanel>
            <StackPanel Name="listPanel" Visibility="Collapsed" Orientation="Vertical">
                <HyperlinkButton Content="&lt; - Back" Click="HyperlinkButton_Click" FontSize="14" FontFamily="Trebuchet MS" Foreground="Black" HorizontalAlignment="Right"/>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Links for keyword '" />
                    <TextBlock Name="txtKeyword" />
                    <TextBlock Text="': " />
                </StackPanel>
                <ListBox Name="listLinks" Width="400" Height="270">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <HyperlinkButton NavigateUri="{Binding Link}" TargetName="NewWindow">
                                <HyperlinkButton.Content>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Title}" FontSize="14" FontFamily="Trebuchet MS" Foreground="Black"/>
                                    </StackPanel>
                                </HyperlinkButton.Content>
                            </HyperlinkButton>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
